package blog;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2024-02-06
 * Time: 18:09
 */
public class InitAndEnd {
    //初始化浏览器
    static WebDriver webDriver;
    @BeforeAll
    static void SetUp() {   //加载浏览器驱动
        webDriver = new ChromeDriver();
    }

    @AfterAll
    static void TearDown() {  //释放浏览器驱动退出
        webDriver.quit();
    }
}
